oracle.hadoop.balancer.examples.movie

## Class MovieGenre

- java.lang.Object
- - org.apache.hadoop.conf.Configured
  - - oracle.hadoop.balancer.examples.movie.MovieGenre

- All Implemented Interfaces:
    org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

      public class MovieGenre
      extends org.apache.hadoop.conf.Configured
      implements org.apache.hadoop.util.Tool

  Movie-demo example that builds a mapping from genre-ids to movie-ids. It contains mapper class, reducer class and a driver.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `MovieGenre.MovieGenreMapper` Movie-demo mapper class for `TextInputFormat` This class used the second element and third element of every row as movie-id and genre-id respectively.
    `static class` | `MovieGenre.MovieGenreReducer` Reducer class for movie-demo example.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `MovieGenre()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(java.lang.String[] args)`
    `int` | `run(java.lang.String[] arg0)`

    - ### Methods inherited from class org.apache.hadoop.conf.Configured

      `getConf, setConf`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.hadoop.conf.Configurable

      `getConf, setConf`

- - ### Constructor Detail

    - #### MovieGenre

          public MovieGenre()

  - ### Method Detail

    - #### main

          public static void main(java.lang.String[] args)
                           throws java.lang.Exception

      Throws:
        `java.lang.Exception`

    - #### run

          public int run(java.lang.String[] arg0)
                  throws java.lang.Exception

      Specified by:
        `run` in interface `org.apache.hadoop.util.Tool`
      Throws:
        `java.lang.Exception`

Copyright © 2013, 2016, Oracle and/or its affiliates. All rights reserved.